Repository navigation
Campaign Cart SDK 0.5.1 and 0.5.2 updates - #77
next-devin wants to merge 5 commits into
Conversation
… setMetadata, sdk_version example
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental review at The earlier Meta findings were re-checked at their current lines (101, 103-104, 121, 196) and remain addressed. Version claims are internally consistent: the starter templates are described as loading 0.5.2 everywhere this PR touches, and the 0.4.43 reference pages stay scoped to campaigns still on 0.4.x. Note: the external Files Reviewed (6 files)
Previous Review Summaries (3 snapshots, latest commit b6ef66a)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit b6ef66a)Status: No Issues Found | Recommendation: Merge Incremental review at Files Reviewed (5 files)
Previous review (commit 4128e60)Status: No Issues Found | Recommendation: Merge Incremental review at Note: the external Files Reviewed (5 files)
Previous review (commit e7c845d)Status: 2 Issues Found | Recommendation: Address before merge Overview
Note: the external `cart-sdk.nextcommerce.com` URLs could not be fetched from this sandbox, so their validity was not independently verified. Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (5 files)
Reviewed by deepseek-v4.1-flash-1017 · Input: 58.4K · Output: 19.4K · Cached: 1.2M |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
developer-docs | d0f48bc | Commit Preview URL Branch Preview URL |
Dec 03 2026, 04:05 AM |
masmalsah
left a comment
There was a problem hiding this comment.
Checked each claim against the SDK at v0.5.1. The content is accurate. Holding this until the starter templates move, for the reason at the end.
Checked and correct
- The Meta 0.5.1 event list matches the SDK's Meta event map:
PageView,ViewContent,AddToCart(first add only),InitiateCheckout,Lead,AddPaymentInfo,Purchase. NoRemoveFromCart,AddShippingInfo,ViewedUpsellorSkippedUpsell. Purchaseon the checkout page when the order is paid there: seen in a test order on 0.5.1.next.actions.setMetadataexists from 0.5.1, so the "SDK 0.5.1 and later" label on both snippets is right.- The "What's new in 0.5.1" link resolves.
One change needed
page-kit.mdx: the sdk_version example should be 0.4.43, not 0.5.1. The starter templates pin 0.4.43, the line below the example says to copy the version from the starter template registry, and the tracking pages say the templates use 0.4.43. main currently says 0.5.0, which also needs to go.
Why hold
The starter template bump is on hold (NextCommerceCo/campaign-cart-starter-templates#260) until two SDK questions are answered: NextCommerceCo/campaign-cart#172 (one dl_upsell_purchase per upsell line) and NextCommerceCo/campaign-cart#171 (the built-in GA4 destination). Both will change what these pages need to say:
google-tag-manager.mdxdescribesdl_upsell_purchaseas one event per accepted upsell.more-integrations.mdxsays an order with two upsells shows as three purchases.google-analytics-4.mdxdoes not mention the SDK's own GA4 destination.
Better to update the campaign docs for 0.5.x once, when the templates move, than in two passes. The sdk_version fix can go in on its own now if you want to split it out.
|
Changed the 🤖 Addressed by Claude Code |
|
Correction: NextCommerceCo/campaign-cart#172 was wrong and is closed. 0.4.43 also sends one |
…0.5.2 link; 0.5.1 Meta notes apply to 0.5.1 and later
Campaign Cart SDK 0.5.2 is out and the starter templates now load it. These changes bring the campaign docs in line. Each claim was checked against the SDK's v0.5.1 and v0.5.2 releases.
Campaigns overview and sidebar: links to What's new in 0.5.2 and What's new in 0.5.1.
Page kit: the
sdk_versionexample is0.5.2, matching the starter templates.Tracking overview: the starter templates load SDK 0.5.2, with links to its analytics, destinations, events and JavaScript API pages. The 0.4.43 reference table stays for campaigns still on 0.4.x.
Tracking > Everflow: the direct-link bridge calls
next.actions.setMetadata(SDK 0.5.1 and later) and falls back tonext.setMetadata(SDK 0.4.x).Tracking > Meta: a note for SDK 0.5.1 and later (0.5.2 sends the same Meta events as 0.5.1) listing the events the pixel gets:
RemoveFromCart,AddShippingInfo,ViewedUpsellorSkippedUpsell;AddToCartfor the first add only;Lead;Purchaseonce per order, on the checkout page when the order is paid there.The note also covers removing
fbq('track', 'PageView')from the pixel base code, and the test-code snippet usesnext.actions.setMetadataon 0.5.1 and later.Left as is: the
blockedEvents: ['dl_purchase']steps in the Meta and Shop Sync guides. SDK 0.5.1 and 0.5.2 still readanalytics.providers.facebook.blockedEventswithdl_*names. The other tracking guides (GTM, attribution, debugger links) still describe SDK 0.4.43 and need their own pass for 0.5.Checks:
npm run validate-links,check-markupandcheck-frontmatterpass.